package glo

import (
	conf "oc_saas/internal/config"

	"github.com/go-playground/validator/v10"
	"github.com/go-redis/redis"
	"go.mongodb.org/mongo-driver/mongo"
	"gorm.io/gorm"
)

var (
	OC_DB            *gorm.DB                 //ORM框架
	OC_CONF          conf.Conf                //全局配置
	OC_REDIS         *redis.ClusterClient     //redis
	OC_MONGO         *mongo.Client            //mongo
	OC_MONGO_CLUSTER map[string]*mongo.Client //mongo集群
	OC_ORM_CLUSTER   map[string]*gorm.DB      //orm分库
	OC_VALID         *validator.Validate      //全局校验工具
)
